package com.qf.mybatis01.dao;

import com.qf.mybatis01.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {

     User getUserId(Integer id);
     User getUserByIdPassword(@Param("id") Integer id,@Param("pwd") String password);
     User selectUserByIdAndPwd_map(Map map);
     User selectUserByUserInfo(User user);
     List<User> selectUserByName(@Param("name")String name);
     int deleteById(@Param("id") Integer id);
     int updateUser(User user);
     int insertUser(User user);
}
